function main() {
  // var startTime = Date.now();
  // for (var index = 0; index < 1000000; index++) {
  //   sleep(10 * 1000);
  //   var curTime = Date.now();
  //   console.log("已经运行了" + (curTime - startTime) / 1000 + "秒");
  // }
  var startTime = Date.now();
  while (true) {
    sleep(10 * 1000);
    var curTime = Date.now();
    console.log("已经运行了" + (curTime - startTime) / 1000 + "秒");
  }
}

main();
